<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qt for CoolQ: C:/Users/echow/Documents/GitHub/qtassistant/CoolQPortal/CoolQMessageFilter.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qt for CoolQ
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">C:/Users/echow/Documents/GitHub/qtassistant/CoolQPortal/CoolQMessageFilter.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef COOLQMESSAGEFILTER_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define COOLQMESSAGEFILTER_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;CoolQInterface.h&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;CoolQPersonInfo.h&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;CoolQMemberInfo.h&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_cool_q.html">CoolQ</a> {</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">class </span>ServiceEngine;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">class </span>ServiceModule;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">class </span>MessageFilterPrivate;</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_cool_q_1_1_message_filter.html">   15</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_cool_q_1_1_message_filter.html">MessageFilter</a> : <span class="keyword">public</span> <a class="code" href="class_cool_q_1_1_interface.html">Interface</a></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    Q_OBJECT</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    Q_DECLARE_PRIVATE(<a class="code" href="class_cool_q_1_1_message_filter.html">MessageFilter</a>)</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <a class="code" href="class_cool_q_1_1_message_filter.html#aee7add538452784dab7da34f55cc1173">MessageFilter</a>(MessageFilterPrivate &amp;dd, <a class="code" href="class_cool_q_1_1_service_module.html">ServiceModule</a> *parent);</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="class_cool_q_1_1_message_filter.html#aee7add538452784dab7da34f55cc1173">MessageFilter</a>(<a class="code" href="class_cool_q_1_1_service_module.html">ServiceModule</a> *parent);</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_cool_q_1_1_message_filter.html#a2a94ba2518196725c048cde8214b265b">~MessageFilter</a>();</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <a class="code" href="class_cool_q_1_1_service_engine.html">ServiceEngine</a> *<a class="code" href="class_cool_q_1_1_message_filter.html#aea6aeebafeeccf316e753362d015c8bd">engine</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <a class="code" href="class_cool_q_1_1_service_module.html">ServiceModule</a> *<a class="code" href="class_cool_q_1_1_message_filter.html#ada78697facaf814b3bd92014108aca1e">module</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6">   32</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6">FilterType</a> {</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a63a530389f7674328d4f8790a943a0b0">   33</a></span>&#160;        <a class="code" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a63a530389f7674328d4f8790a943a0b0">PrivateFilter</a> = 0x01,</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a4e041e516370bcea27d1d9bbe3312d47">   34</a></span>&#160;        <a class="code" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a4e041e516370bcea27d1d9bbe3312d47">GroupFilter</a>   = 0x02,</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a236605c4ba234178e7f58cead8350bd7">   35</a></span>&#160;        <a class="code" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a236605c4ba234178e7f58cead8350bd7">DiscussFilter</a> = 0x04,</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    };</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    Q_DECLARE_FLAGS(Filters, <a class="code" href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6">FilterType</a>)</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">virtual</span> Filters <a class="code" href="class_cool_q_1_1_message_filter.html#a426ba8708c2173998375de184da9907e">filters</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">virtual</span> QStringList <a class="code" href="class_cool_q_1_1_message_filter.html#a6def5522baa38068240044fd444bc53c">keywords</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">virtual</span> QString <a class="code" href="class_cool_q_1_1_message_filter.html#a69b49f27202ae57ccac17e5df1817257">description</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_cool_q_1_1_message_filter.html#a4874a59b51f1b5fa8fc48062697f53e8">privateMessageFilter</a>(<span class="keywordtype">int</span> i, <span class="keyword">const</span> <a class="code" href="struct_cool_q_1_1_message_event.html">MessageEvent</a> &amp;ev);</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_cool_q_1_1_message_filter.html#aadcfc3e5ec20b188f626a081a3e207db">groupMessageFilter</a>(<span class="keywordtype">int</span> i, <span class="keyword">const</span> <a class="code" href="struct_cool_q_1_1_message_event.html">MessageEvent</a> &amp;ev);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_cool_q_1_1_message_filter.html#a888af576b03bcb5cbb07ee3ce1d9d8f7">discussMessageFilter</a>(<span class="keywordtype">int</span> i, <span class="keyword">const</span> <a class="code" href="struct_cool_q_1_1_message_event.html">MessageEvent</a> &amp;ev);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;};</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;} <span class="comment">// namespace CoolQ</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#endif // COOLQMESSAGEFILTER_H</span></div><div class="ttc" id="class_cool_q_1_1_message_filter_html_a784f510148c0565b783416c6e38151c6a63a530389f7674328d4f8790a943a0b0"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a63a530389f7674328d4f8790a943a0b0">CoolQ::MessageFilter::PrivateFilter</a></div><div class="ttdoc">私有消息过滤器类型 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.h:33</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html">CoolQ::MessageFilter</a></div><div class="ttdoc">消息过滤类 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.h:15</div></div>
<div class="ttc" id="class_cool_q_1_1_interface_html"><div class="ttname"><a href="class_cool_q_1_1_interface.html">CoolQ::Interface</a></div><div class="ttdoc">通用接口类 </div><div class="ttdef"><b>Definition:</b> CoolQInterface.h:111</div></div>
<div class="ttc" id="namespace_cool_q_html"><div class="ttname"><a href="namespace_cool_q.html">CoolQ</a></div><div class="ttdef"><b>Definition:</b> CoolQInterface.cpp:290</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_aee7add538452784dab7da34f55cc1173"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#aee7add538452784dab7da34f55cc1173">CoolQ::MessageFilter::MessageFilter</a></div><div class="ttdeci">MessageFilter(MessageFilterPrivate &amp;dd, ServiceModule *parent)</div><div class="ttdoc">构造函数 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.cpp:24</div></div>
<div class="ttc" id="class_cool_q_1_1_service_module_html"><div class="ttname"><a href="class_cool_q_1_1_service_module.html">CoolQ::ServiceModule</a></div><div class="ttdoc">服务模块类 </div><div class="ttdef"><b>Definition:</b> CoolQServiceModule.h:13</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_a784f510148c0565b783416c6e38151c6"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6">CoolQ::MessageFilter::FilterType</a></div><div class="ttdeci">FilterType</div><div class="ttdoc">消息过滤器类型 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.h:32</div></div>
<div class="ttc" id="class_cool_q_1_1_service_engine_html"><div class="ttname"><a href="class_cool_q_1_1_service_engine.html">CoolQ::ServiceEngine</a></div><div class="ttdoc">服务引擎类 </div><div class="ttdef"><b>Definition:</b> CoolQServiceEngine.h:13</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_a6def5522baa38068240044fd444bc53c"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#a6def5522baa38068240044fd444bc53c">CoolQ::MessageFilter::keywords</a></div><div class="ttdeci">virtual QStringList keywords() const</div><div class="ttdoc">返回关键词列表。 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.cpp:114</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_a888af576b03bcb5cbb07ee3ce1d9d8f7"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#a888af576b03bcb5cbb07ee3ce1d9d8f7">CoolQ::MessageFilter::discussMessageFilter</a></div><div class="ttdeci">virtual bool discussMessageFilter(int i, const MessageEvent &amp;ev)</div><div class="ttdoc">讨论组消息过滤器 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.cpp:164</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_aadcfc3e5ec20b188f626a081a3e207db"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#aadcfc3e5ec20b188f626a081a3e207db">CoolQ::MessageFilter::groupMessageFilter</a></div><div class="ttdeci">virtual bool groupMessageFilter(int i, const MessageEvent &amp;ev)</div><div class="ttdoc">群组消息过滤器 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.cpp:149</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_ada78697facaf814b3bd92014108aca1e"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#ada78697facaf814b3bd92014108aca1e">CoolQ::MessageFilter::module</a></div><div class="ttdeci">ServiceModule * module() const</div><div class="ttdoc">返回所属的模块对象指针。 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.cpp:71</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_aea6aeebafeeccf316e753362d015c8bd"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#aea6aeebafeeccf316e753362d015c8bd">CoolQ::MessageFilter::engine</a></div><div class="ttdeci">ServiceEngine * engine() const</div><div class="ttdoc">返回所属的引擎对象指针。 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.cpp:61</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_a2a94ba2518196725c048cde8214b265b"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#a2a94ba2518196725c048cde8214b265b">CoolQ::MessageFilter::~MessageFilter</a></div><div class="ttdeci">virtual ~MessageFilter()</div><div class="ttdoc">析构函数 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.cpp:54</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_a784f510148c0565b783416c6e38151c6a236605c4ba234178e7f58cead8350bd7"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a236605c4ba234178e7f58cead8350bd7">CoolQ::MessageFilter::DiscussFilter</a></div><div class="ttdoc">讨论组消息过滤器类型 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.h:35</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_a784f510148c0565b783416c6e38151c6a4e041e516370bcea27d1d9bbe3312d47"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#a784f510148c0565b783416c6e38151c6a4e041e516370bcea27d1d9bbe3312d47">CoolQ::MessageFilter::GroupFilter</a></div><div class="ttdoc">群组消息过滤器类型 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.h:34</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_a4874a59b51f1b5fa8fc48062697f53e8"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#a4874a59b51f1b5fa8fc48062697f53e8">CoolQ::MessageFilter::privateMessageFilter</a></div><div class="ttdeci">virtual bool privateMessageFilter(int i, const MessageEvent &amp;ev)</div><div class="ttdoc">私有消息过滤器 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.cpp:134</div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_a426ba8708c2173998375de184da9907e"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#a426ba8708c2173998375de184da9907e">CoolQ::MessageFilter::filters</a></div><div class="ttdeci">virtual Filters filters() const =0</div><div class="ttdoc">返回过滤器类型 </div></div>
<div class="ttc" id="class_cool_q_1_1_message_filter_html_a69b49f27202ae57ccac17e5df1817257"><div class="ttname"><a href="class_cool_q_1_1_message_filter.html#a69b49f27202ae57ccac17e5df1817257">CoolQ::MessageFilter::description</a></div><div class="ttdeci">virtual QString description() const</div><div class="ttdoc">返回过滤器描述信息。 </div><div class="ttdef"><b>Definition:</b> CoolQMessageFilter.cpp:122</div></div>
<div class="ttc" id="struct_cool_q_1_1_message_event_html"><div class="ttname"><a href="struct_cool_q_1_1_message_event.html">CoolQ::MessageEvent</a></div><div class="ttdoc">通用消息事件 </div><div class="ttdef"><b>Definition:</b> CoolQInterface.h:18</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
